PGetAdditions

Gets the number of plug-ins listed on the PageMaker Plug-ins submenu and, for each, lists its filename and menu name.


Query results

PGetAdditions is a subclass of PListQuery, which returns a list of information. Be sure that PListQuery::Count() > 0 before accessing these fields.

const char * sPlugInLibrary;

Name of loadable plug-in library file.

const char * sPlugInName;

Menu name of plug-in

Example. To execute a plug-in, use the PAddition command.

PGetAdditions additions;
for (short i = additions.Count(); i > 0; --i) {
    if (strcmp(additions.sPlugInLibrary, "MyOtherPlugin.add") == 0)
        PAddition(additions.sPlugInLibrary, additions.sPlugInName);
    additions++;
}


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support